package csc.fresher.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import csc.fresher.dao.SystemUserHasRoleDao;
import csc.fresher.entity.SystemUserHasRole;

@Service
public class SystemUserHasRoleServiceImpl implements SystemUserHasRoleService{
	@Autowired
	private SystemUserHasRoleDao systemUserHRDao;

	@Override
	public long insertUserHasRole(SystemUserHasRole systemUserHasRole) {
		return systemUserHRDao.insertUserHasRole(systemUserHasRole);
	}
	
	@Override
	public long deletetUserHasRole(long systemUserID) {
		// TODO Auto-generated method stub
		return systemUserHRDao.deleteUserHasRole(systemUserID);
	}
	
	@Override
	public List<SystemUserHasRole> getRoleBySystemUserID(long systemUserID) {
		return systemUserHRDao.getRoleBySystemUserID(systemUserID);
	}	
}
